﻿@inherits DBlazor.Base.BaseBarDropdownItem
@if ( !ComponentMapper.HasRegistration( this ) )
{
    @if ( To != null )
    {
        <LinkBase TagName="a" class="@ClassMapper.Class" href="@To" title="@Title" Match="@Match">
            @ChildContent
        </LinkBase>
    }
    else
    {
        <a class="@ClassMapper.Class" title="@Title" onclick="@ClickHandler">
            @ChildContent
        </a>
    }
}
else
{
    @RenderCustomComponent()
}